package com.shopx.cm.service;

import com.shopx.cm.bean.CmMaterial;
import com.shopx.cm.model.CmMaterialModel;
import com.shopx.cmm.DTO.PageDTO;
import java.util.List;
//import com.shopx.base.exception.ShopxException;

/**
 * TODO
 * @author lituo
 * @className: CmMaterial
 * @date 2025-01-08
 */
public interface ICmMaterialService {

    /**
     * 查询明细记录
     * @author lituo
     * @date 2025-01-08
     * @param cmMaterial
     * @return CmMaterialModel
     */
    CmMaterialModel selectByPrimaryKey(CmMaterial cmMaterial);

    /**
     * 新增记录
     * @author lituo
     * @date 2025-01-08
     * @param cmMaterial
     * @return int
     */
    int insertSelective(CmMaterial cmMaterial);

    /**
     * 修改记录
     * @author lituo
     * @date 2025-01-08
     * @param cmMaterial
     * @return int
     */
    int updateByPrimaryKeySelective(CmMaterial cmMaterial);

    /**
     * 删除记录
     * @author lituo
     * @date 2025-01-08
     * @param cmMaterial
     * @return int
     */
    int deleteByPrimaryKey(CmMaterial cmMaterial);
	

	/**
     * 查询总记录数
     * @author lituo
     * @date 2025-01-08
     * @param cmMaterialModel
     * @return int
     */
    int selectCount(CmMaterialModel cmMaterialModel);

    /**
     * 查询列表
     * @author lituo
     * @date 2025-01-08
     * @param cmMaterialModel
     * @return List<CmMaterialModel>
     */
    List<CmMaterialModel> selectList(CmMaterialModel cmMaterialModel);

    /**
     * 分页查询
     * @author lituo
     * @date 2025-01-08
     * @param cmMaterialModel
     * @return PageModel<CmMaterialModel>
     */
    PageDTO<CmMaterialModel> getListPage(CmMaterialModel cmMaterialModel);

    /**
     * 同步ERP数据
     */
    void syncErpData();
	
}

